package com.beerbear.nacosfirstservice.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;



/**
 * @Author: Beer Bear
 * @Description: 实现Nacos中配置文件的热更新
 * @Date: 2021/8/23 14:21
 */
@Component
@Data
@ConfigurationProperties(prefix = "application")
public class NacosCentralProperties {
    // dev环境下的配置文件中的字段
    private String username;

    // 共享配置中的字段
    private String goal;
}



